Skip to content

feat: show diff in schema checks#11

Closed
DaniAkash wants to merge 5 commits intomainfrom
dani/eng-3681-show-diff-in-schema-check-if-we-have-a-previous-schema
Closed

feat: show diff in schema checks#11
DaniAkash wants to merge 5 commits intomainfrom
dani/eng-3681-show-diff-in-schema-check-if-we-have-a-previous-schema

Conversation

@DaniAkash
Copy link
Copy Markdown
Contributor

Motivation and Context

Diff checks in dark & light modes:

Screenshot 2023-08-22 at 5 49 39 PM Screenshot 2023-08-22 at 5 49 51 PM

@linear
Copy link
Copy Markdown

linear Bot commented Aug 25, 2023

@DaniAkash DaniAkash requested a review from JivusAyrus August 29, 2023 06:56
isBreaking: c.hasBreakingChanges ?? false,
isComposable: c.isComposable ?? false,
proposedSubgraphSchemaSDL: c.proposedSubgraphSchemaSDL ?? undefined,
// TODO: Figure out why type fails
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you find out why this happens?

@@ -0,0 +1,6 @@
ALTER TABLE "schema_checks" ADD COLUMN "schema_version_id" uuid NOT NULL;--> statement-breakpoint
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

migration to populate the schema_version_id to the already existing schema checks?

isComposable: boolean;
isBreaking: boolean;
proposedSubgraphSchemaSDL?: string;
originalSchemaSDL: string;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment saying what the originalSchemSDL means

@StarpTech
Copy link
Copy Markdown
Contributor

Closing due to inactivity.

@StarpTech StarpTech closed this Sep 20, 2023
jensneuse added a commit that referenced this pull request Apr 24, 2026
…18)

- #9: buildExplicitMappings accumulates composite @openfed__is mappings
  instead of returning on the first composite, so alternative @key
  directives on the same field still emit their own EntityKeyMappingConfig
- #10: nested auto-mapping runs the same extra-argument invalidation check
  as flat-key mappings via new shared helper invalidateAutoMappingWithExtraArgument
- #11: add missing `version` argument to the negativeCacheTTL failure test
- #18: buildCompositeIsMapping normalizes argInfo.isFieldValue before key
  lookup so "sku id" matches an "id sku" key

Thread #8 (coderabbit: error on @queryCache interface return) investigated
and refuted — rules 37 / 37b in entity-cache-mapping-rules.test.ts assert
this case must succeed with no warning because concrete implementations
carry @entityCache.

Thread #17 (coderabbit: unwrap NonNull in typesMatchIncludingListShape)
investigated and refuted — rule 15b, 40, 40b, 40c encode the opposite
semantics: explicit @openfed__is is lenient about NonNull when named type
matches, nested auto-mapping is strict. composition/CLAUDE.md lines
142-146 were stale and misled review tooling; corrected in this commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants